@import "./modules/reset";
@import "./modules/var";
@import "./modules/mixin";
@import "./modules/nav";
@import "./modules/header";
@import "./modules/footer";
@import "./modules/asideShortCut";
@import "./modules/indexcommon";

//头部
.header-nav {
  height: 42px;
  border-bottom: 2px solid $color;
  background-color: #fff;
  .theme-market {
    position: relative;
    width: 257px;
    .title {
      font-size: 18px;
      line-height: 40px;
      color: #fff;
      background: url('../../static/images/indeximg/theme-market.png') no-repeat center;
      background-size: cover;
      padding-left: 45px;
      border-radius: 5px 5px 0 0;
      cursor: pointer;
    }
    ul.markets {
      position: absolute;
      z-index: 10;
      top: 42px;
      background-color: #F5FBF9;
      height: 440px;
      padding: 10px 0;
      li {
        width: 257px;
        line-height: 32px;
        height: 32px;
        padding-left: 18px;
        border-left: 2px solid transparent;
        white-space: nowrap;
        &:nth-child(odd):hover {
          background-color: #fff;
          border-left-color: #6644FF;
        }
        &:nth-child(even):hover {
          background-color: #fff;
          border-left-color: #33CCEE;
        }
        span {
          margin: 0 8px;
          cursor: pointer;
          &:hover {
            text-decoration: underline;
          }
        }
        span.cate {
          font-weight: 700;
          font-size: 14px;
        }
        span.hot {
          color: $color;
        }
        span.hotted {
          position: relative;
          &::after {
            content: '';
            position: absolute;
            top: -8px;
            right: -12px;
            @include setbgimg(12px, 13px, '../../static/images/indeximg/hot.png');
          }
        }
      }
    }
  }
  .limit-time {
    width: 141px;
    text-align: center;
    border-right: 1px solid #DDDDDD;
    font-size: 18px;
    color: #000;
    cursor: pointer;
    height: 20px;
    line-height: 20px;
    margin-top: 10px;
    &:hover {
      color: $color;
    }
  }
}
//banner区域
.banner_wrapper {
  background-color: #CCEAE2;
  transition: background-color 0.5s;
  height: 440px;
  .banner {
    position: relative;
    width: 1134px;
    height: 440px;
    margin: 0 auto;
    >img {
      width: 1134px;
      height: 440px;
    }
    .user-message {
      position: absolute;
      z-index: 20;
      width: 165px;
      height: 210px;
      right: -28px;
      top: 5px;
      padding: 10px 15px;
      background-color: #fff;
      .avatar {
        width: 72px;
        height: 72px;
        border-radius: 50%;
        margin: 0 auto;
        overflow: hidden;
        cursor: pointer;
        >img {
          width: 100%;
          height: 100%;
        }
      }
      p.greet {
        text-align: center;
        line-height: 32px;
      }
      button {
        display: block;
        width: 72px;
        height: 24px;
        line-height: 22px;
        margin: 0 auto;
        background-color: #fff;
        font-size: 12px;
        border: 1px solid $color;
        color: $color;
        cursor: pointer;
      }
      ul.buymessage {
        margin-top: 10px;
        text-align: center;
        li {
          display: inline-block;
          padding: 0 3px;
          .count {
            font-size: 20px;
            color: $color;
            font-weight: 700;
            font-family: "PingFang SC", Georgia, "Times New Roman", "Microsoft YaHei", "微软雅黑", "STXihei", "华文细黑", serif;
          }
        }
      }
    }
    .mgjapp {
      position: absolute;
      z-index: 20;
      padding-top: 10px;
      width: 165px;
      height: 200px;
      right: -28px;
      top: 220px;
      background-color: #fff;
      text-align: center;
      cursor: pointer;
      p:nth-child(1) {
        line-height: 30px;
        font-size: 16px;
      }
      p:nth-child(2) {
        line-height: 30px;
        font-size: 14px;
      }
      img {
        width: 130px;
        height: 130px;
        margin-top: 10px;
      }
    }
    .banner-swiper {
      .banner-pagination {
        span {
          width: 12px;
          height: 12px;
          border: 2px solid transparent;
          background-clip: content-box;
          background-color: rgba(0,0,0,.3);
          opacity: 1;
        }
        span.swiper-pagination-bullet-active {
          border-color: rgba(255,255,255,.8);
          background-color: rgba(0,0,0,.7);
        }
      }
    }
  }
} 
//每日必抢模块
.must-rub {
  .topview {
    height: 294px;
    margin-top: 20px;
    background-color: #fff;
    .left-title-aside {
      position: relative;
      @include setbgimg(230px, 294px, '../../static/images/indeximg/must_rub.webp');
      .counter {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: 20px;
        height: 40px;
        line-height: 40px;
        white-space: nowrap;
        font-size: 0;
        div {
          display: inline-block;
        }
        div.time {
          background-color: #000;
          color: #fff;
          padding: 0 5px;
          font-size: 30px;
          border-radius: 5px;
        }
        div.symbol {
          color: #000;
          font-size: 30px;
          margin: 0 3px;
        }
      }
    }
    #my-swiper-box {
      width: 960px;
      height: 294px;
      padding: 0 20px;
      overflow: hidden;
      .my-swiper {
        width: 100%;
        height: 100%;
        padding-bottom: 16px;
        overflow: visible;
        .swiper-slide {
          position: relative;
          padding-top: 30px;
          overflow: hidden;
          padding: 30px 20px 0 20px;
          img {
            width: 190px;
          }
          .goods-info {
            position: absolute;
            width: 190px;
            background-color: #fff;
            bottom: 0;
            padding-left: 15px;
            .title {
              line-height: 20px;
              white-space: nowrap;
              overflow: hidden;
              text-overflow: ellipsis;
              font-size: 14px;
              color: #666;
              margin-top: 5px;
            }
            .price {
              line-height: 30px;
              color: $color;
              font-size: 16px;
            }
          }
        }
        .prev, .next {
          width: 25px;
          height: 50px;
          background-color: rgba(0,0,0,.3);
          text-align: center;
        }
        .prev::after,.next::after {
          font-size: 16px;
          font-weight: 700;
          color: #fff;
        }
        .prev {
          border-radius: 0 5px 5px 0;
          left: -20px;
        }
        .next {
          border-radius: 5px 0 0 5px;
          right: -20px;
        }
      }
    }
  }
  .img-list {
    height: 150px;
    margin-top: 10px;
    li {
      float: left;
      height: 100%;
      margin-right: 10px;
      img {
        height: 100%;
        cursor: pointer;
      }
      &:last-child {
        margin-right: 0;
      }
    }
  }
}

//女装模块
.womenwear {
  padding-top: 20px;
  margin-top: 40px;
  .wtitle {
    line-height: 20px;
    height: 20px;
    border-left: 7px solid $color;
    padding-left: 10px;
    margin-bottom: 20px;
    .theme {
      font-size: 18px;
      font-weight: 700;
    }
    ul.nav {
      margin-left: 40px;
      font-size: 14px;
      li {
        float: left;
        cursor: pointer;
        &:not(&.line):hover {
          color: $color;
        }
      }
      li.line {
        margin: 0 15px;
        cursor: default;
      }
    }
  }
  .bwrap {
    .left-img {
      width: 230px;
      height: 624px;
      img {
        width: 100%;
        height: 100%;
        cursor: pointer;
      }
    }
    .right-module {
      width: 950px;
      height: 624px;
      margin-left: 10px;
      #my-swiper-box-womenwear {
        .my-swiper {
          .prev, .next {
            width: 25px;
            height: 50px;
            background-color: rgba(0,0,0,.3);
            text-align: center;
          }
          .prev::after,.next::after {
            font-size: 16px;
            font-weight: 700;
            color: #fff;
          }
          .prev {
            border-radius: 0 5px 5px 0;
            left: 16px;
          }
          .next {
            border-radius: 5px 0 0 5px;
            right: 16px;
          }
        }
        .swiper-wrapper {
          .swiper-slide {
            width: 230px !important;
            height: 408px;
            padding: 16px;
            background-color: #fff;
            margin-right: 10px;
            &:nth-child(4n) {
              margin-right: 0;
            }
            img {
              width: 198px;
              height: 297px;
            }
            .goods-info {
              width: 198px;
              .title {
                line-height: 20px;
                margin-top: 4px;
                display: -webkit-box;
                text-overflow: ellipsis;
                overflow: hidden;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 2;
              }
              .price {
                color: $color;
                font-size: 16px;
                line-height: 30px;
              }
            }
          }
        }
      }
      .mid-img-list {
        margin: 10px 0;
        height: 113px;
        li {
          float: left;
          height: 100%;
          &:not(:last-child) {
            margin-right: 10px;
          }
          &:first-child {
            width: 470px;
            height: 100%;
          }
          &:nth-child(2),
          &:nth-child(3) {
            width: 230px;
            height: 100%;
          }
          img {
            width: 100%;
            height: 100%;
          }
        }
      }
      .bottom-img-list {
        height: 83px;
        li {
          float: left;
          width: 230px;
          height: 100%;
          cursor: pointer;
          background-color: #fff;
          &:not(&:last-child) {
            margin-right: 10px;
          }
          .left-info {
            float: left;
            padding-left: 10px;
            padding-top: 20px;
            .title {
              font-size: 16px;
              color: $color;
            }
          }
          >img {
            float: right;
            height: 100%;
            transition: transform 0.5s;
            &:hover {
              transform: translateY(-5px);
            }
          }
        }
      }
    }
  }
}

//女鞋包包
.womenshoes {
  padding-top: 20px;
  margin-top: 80px;
}

//男装男鞋
.maleshoes {
  padding-top: 20px;
  margin-top: 80px;
}

//内衣
.underwear {
  padding-top: 20px;
  margin-top: 80px;
  .wtitle {
    border-left-color: $color !important;
  }
}

//家纺家饰
.homedecoration {
  padding-top: 20px;
  margin-top: 80px;
  .wtitle {
    border-left-color: #ECA68F !important;
  }
}

//母婴童装
.kidwear {
  margin-top: 80px;
  padding-top: 20px;
  .wtitle {
    border-left-color: #ECA68F !important;
  }
}

//猜你喜欢
.guess-you-like {
  margin-top: 80px;
  padding-top: 20px;
  >.title {
    font-size: 20px;
    font-weight: 700;
    line-height: 30px;
  }
  .guess-you-like-list {
    margin-top: 20px;
    li {
      float: left;
      width: 220px;
      height: 375px;
      border: 1px solid transparent;
      background-color: #fff;
      &:not(:nth-child(5n)) {
        margin: 0 22px 22px 0;
      }
      .img {
        position: relative;
        width: 100%;
        height: 290px;
        cursor: pointer;
        &::after {
          content: '找相似';
          display: none;
          position: absolute;
          left: 0;
          bottom: 0;
          width: 100%;
          line-height: 24px;
          height: 24px;
          color: #fff;
          font-size: 14px;
          text-align: center;
          background-color: rgba(255, 50, 90, .6);
        }
        img {
          width: 100%;
          height: 100%;
        }
      }
      .title {
        padding: 0 10px;
        line-height: 20px;
        font-size: 14px;
        margin-top: 5px;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .goods-info {
        padding: 0 10px;
        margin-top: 5px;
        line-height: 20px;
        .price {
          font-size: 16px;
          color: #000;
        }
        .store {
          i {
            float: left;
            margin-top: 2px;
            margin-right: 3px;
            @include setbgimg(16px, 15px, '../../static/images/indeximg/collection.png');
          }
          .store-count {
            color: #bfbfbf;
          }
        }
      }
      &:hover {
        .img::after {
          display: block;
        }
        border-color: $color;
      }
    }
  }
}

//楼梯层
.floor-btns {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: -700px;
  background-color: #fff;
  text-align: center;
  border-radius: 5px;
  box-shadow: 0 0 3px rgba(0,0,0,.2);
  overflow: hidden;
  ul {
    li {
      line-height: 30px;
      height: 31px;
      border-bottom: 1px solid #bfbfbf;
      padding: 0 15px;
      cursor: pointer;
      transition: background-color 0.2s;
      &:hover {
        background-color: #C81623;
        color: #fff;
      }
    }
    li.active {
      background-color: #C81623;
      color: #fff;
    }
  }
  #floorbacktop {
    display: block;
    width: 100%;
    line-height: 30px;
    height: 0;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.2s, height 0.5s;
    &:hover {
      background-color: #C81623;
      color: #fff;
    }
  }
}